home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1997 May
/
EnigmA AMIGA RUN 18 (1997)(G.R. Edizioni)(IT)[!][issue 1997-05][EAR-CD II].iso
/
softwareupdate
/
system
/
amigados
/
amigadoslibrary
/
setcomment.c
< prev
next >
Wrap
C/C++ Source or Header
|
1996-10-10
|
672b
|
32 lines
/* SetComment.c V1.0 93-03-15 */
/* ROM library: "dos.library/SetComment", (All versions) */
/* Copyright 1993, Anders Bjerin, Amiga C Club */
#include <dos/dos.h>
#include <clib/dos_protos.h>
#include <stdio.h>
#include <stdlib.h>
UBYTE *version = "$VER: SetComment 1.0";
int main( int argc, char *argv[] );
int main( int argc, char *argv[] )
{
BOOL ok;
/* Attach a short comment to a file: */
ok = SetComment( "RAM:HighScore.dat", "Try to beat this!" );
/* OK? */
if( ok )
printf( "The comment was successfull attached to the file!\n" );
else
printf( "Could not attach the comment!\n" );
exit( 0 );
}